import request from '@/utils/request'

// 信息列表
export const articleListApi = function (params) {
  return request({
    url: '/h5/interview/query',
    method: 'GET',
    params
  })
}

// 单个信息的详情
export const articleDetailApi = function (id) {
  return request({
    url: '/h5/interview/show',
    method: 'GET',
    params: {
      id
    }
  })
}

// 收藏
export const collectApi = function (data) {
  return request({
    url: '/h5/interview/opt',
    method: 'POST',
    data
  })
}

// 收藏点赞的列表
export const ListApi = function (params) {
  return request({
    url: '/h5/interview/opt/list',
    method: 'GET',
    params
  })
}
